package com.littlebee.storysuper;

import android.app.Application;
import android.content.Context;
import android.os.Handler;
import android.util.Log;

import cn.jpush.im.android.api.JMessageClient;


public class BaseApplication extends Application {

    public static BaseApplication instance;
    private static Context mContext;

    public static BaseApplication getInstance() {
        return instance;
    }

    public BaseApplication() {
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        mContext = getApplicationContext();
        Log.i("IMDebugApplication", "init");
        JMessageClient.setDebugMode(true);
        JMessageClient.init(getApplicationContext(), true);
        JMessageClient.setNotificationFlag(JMessageClient.FLAG_NOTIFY_WITH_SOUND);
    }

}
